adding pivot fields